package cn.mugutu.finance.query;

import cn.mugutu.finance.domain.system.Role;
import org.apache.commons.lang3.StringUtils;

public class RoleQuery extends BaseQuery {

    public RoleQuery() {
        super(Role.class);
    }

    private String name;

    @Override
    public void addWhere() {
        if (StringUtils.isNotBlank(name)) { addWhere(" o.name like ? ", "%" + name + "%"); }
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

}
